.class public abstract Les/uy;
.super Ljava/lang/Object;
.source "DoubleColumnMenu.java"

# interfaces
.implements Les/iz$g;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/uy$c;
    }
.end annotation


# instance fields
.field private a:Landroid/content/Context;

.field private b:I

.field private c:I

.field private d:Landroid/view/View;

.field private e:Landroid/widget/LinearLayout;

.field private f:Landroid/widget/LinearLayout;

.field protected g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/v00;",
            ">;"
        }
    .end annotation
.end field

.field private h:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray<",
            "Les/uy$c;",
            ">;"
        }
    .end annotation
.end field

.field private i:Lcom/estrongs/android/ui/theme/b;

.field private j:Landroid/view/View$OnClickListener;

.field private k:Landroid/view/View$OnLongClickListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;I)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Les/uy;->g:Ljava/util/List;

    .line 3
    new-instance v0, Landroid/util/SparseArray;

    invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V

    iput-object v0, p0, Les/uy;->h:Landroid/util/SparseArray;

    .line 4
    new-instance v0, Les/uy$a;

    invoke-direct {v0, p0}, Les/uy$a;-><init>(Les/uy;)V

    iput-object v0, p0, Les/uy;->j:Landroid/view/View$OnClickListener;

    .line 5
    new-instance v0, Les/uy$b;

    invoke-direct {v0, p0}, Les/uy$b;-><init>(Les/uy;)V

    iput-object v0, p0, Les/uy;->k:Landroid/view/View$OnLongClickListener;

    .line 6
    iput-object p1, p0, Les/uy;->a:Landroid/content/Context;

    .line 7
    iput p2, p0, Les/uy;->b:I

    .line 8
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p1

    iput-object p1, p0, Les/uy;->i:Lcom/estrongs/android/ui/theme/b;

    .line 9
    invoke-direct {p0}, Les/uy;->b()V

    return-void
.end method

.method static synthetic a(Les/uy;)I
    .locals 0

    .line 1
    iget p0, p0, Les/uy;->b:I

    return p0
.end method

.method private a(Les/v00;Les/uy$c;Z)V
    .locals 3

    .line 25
    invoke-static {p2}, Les/uy$c;->b(Les/uy$c;)Landroid/widget/Button;

    move-result-object p3

    .line 26
    invoke-virtual {p1}, Les/v00;->getIcon()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const v1, 0x7f0602dd

    if-nez v0, :cond_0

    .line 27
    iget-object v0, p0, Les/uy;->i:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {p1}, Les/v00;->d()I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 28
    iget-object v2, p0, Les/uy;->i:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v2, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v1

    invoke-static {v0, v1}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 29
    invoke-virtual {p1, v0}, Les/v00;->setIcon(Landroid/graphics/drawable/Drawable;)Les/v00;

    goto :goto_0

    .line 30
    :cond_0
    instance-of v2, v0, Landroidx/appcompat/graphics/drawable/DrawableWrapper;

    if-eqz v2, :cond_1

    .line 31
    iget-object v2, p0, Les/uy;->i:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v2, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v1

    invoke-static {v0, v1}, Landroidx/core/graphics/drawable/DrawableCompat;->setTint(Landroid/graphics/drawable/Drawable;I)V

    goto :goto_0

    .line 32
    :cond_1
    iget-object v2, p0, Les/uy;->i:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v2, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v1

    invoke-static {v0, v1}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 33
    :goto_0
    iget-object v1, p0, Les/uy;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700c6

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    const/4 v2, 0x0

    .line 34
    invoke-virtual {v0, v2, v2, v1, v1}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    const/4 v1, 0x0

    .line 35
    invoke-virtual {p3, v0, v1, v1, v1}, Landroid/widget/Button;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 36
    invoke-virtual {p1}, Les/v00;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    if-nez v0, :cond_2

    .line 37
    invoke-virtual {p1}, Les/v00;->k()I

    move-result p1

    invoke-virtual {p3, p1}, Landroid/widget/Button;->setText(I)V

    goto :goto_1

    .line 38
    :cond_2
    invoke-virtual {p3, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 39
    :goto_1
    invoke-virtual {p2}, Les/uy$c;->c()V

    return-void
.end method

.method static synthetic b(Les/uy;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Les/uy;->a:Landroid/content/Context;

    return-object p0
.end method

.method private b()V
    .locals 3

    .line 2
    iget-object v0, p0, Les/uy;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c00fa

    const/4 v2, 0x0

    .line 3
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Les/uy;->d:Landroid/view/View;

    const v1, 0x7f0906cc

    .line 4
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Les/uy;->e:Landroid/widget/LinearLayout;

    .line 5
    iget-object v0, p0, Les/uy;->d:Landroid/view/View;

    const v1, 0x7f0909b0

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Les/uy;->f:Landroid/widget/LinearLayout;

    return-void
.end method

.method private c(I)V
    .locals 4

    .line 1
    iget v0, p0, Les/uy;->c:I

    if-le p1, v0, :cond_2

    mul-int/lit8 v0, v0, 0x2

    :goto_0
    mul-int/lit8 v1, p1, 0x2

    if-ge v0, v1, :cond_3

    .line 2
    iget-object v1, p0, Les/uy;->h:Landroid/util/SparseArray;

    invoke-virtual {v1, v0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/uy$c;

    if-nez v1, :cond_1

    .line 3
    invoke-virtual {p0, v0}, Les/uy;->a(I)Les/uy$c;

    move-result-object v1

    .line 4
    iget-object v2, p0, Les/uy;->h:Landroid/util/SparseArray;

    invoke-virtual {v2, v0, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 5
    rem-int/lit8 v2, v0, 0x2

    if-nez v2, :cond_0

    .line 6
    iget-object v2, p0, Les/uy;->e:Landroid/widget/LinearLayout;

    invoke-static {v1}, Les/uy$c;->a(Les/uy$c;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_1

    .line 7
    :cond_0
    iget-object v2, p0, Les/uy;->f:Landroid/widget/LinearLayout;

    invoke-static {v1}, Les/uy$c;->a(Les/uy$c;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 8
    :cond_1
    :goto_1
    invoke-virtual {v1}, Les/uy$c;->b()V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    if-ge p1, v0, :cond_3

    mul-int/lit8 v0, p1, 0x2

    .line 9
    :goto_2
    iget v1, p0, Les/uy;->c:I

    mul-int/lit8 v1, v1, 0x2

    if-ge v0, v1, :cond_3

    .line 10
    iget-object v1, p0, Les/uy;->h:Landroid/util/SparseArray;

    invoke-virtual {v1, v0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/uy$c;

    .line 11
    invoke-virtual {v1}, Les/uy$c;->a()V

    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    .line 12
    :cond_3
    iput p1, p0, Les/uy;->c:I

    return-void
.end method


# virtual methods
.method public a()Landroid/view/View;
    .locals 1

    .line 40
    iget-object v0, p0, Les/uy;->d:Landroid/view/View;

    return-object v0
.end method

.method protected a(I)Les/uy$c;
    .locals 3

    .line 2
    iget-object v0, p0, Les/uy;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c01c4

    const/4 v2, 0x0

    .line 3
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const v1, 0x7f0901c6

    .line 4
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    const v2, 0x7f090327

    .line 5
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    .line 6
    new-instance v2, Les/uy$c;

    invoke-direct {v2, p0}, Les/uy$c;-><init>(Les/uy;)V

    .line 7
    invoke-static {v2, v0}, Les/uy$c;->a(Les/uy$c;Landroid/view/View;)Landroid/view/View;

    .line 8
    invoke-static {v2, v1}, Les/uy$c;->a(Les/uy$c;Landroid/widget/Button;)Landroid/widget/Button;

    .line 9
    invoke-static {v2}, Les/uy$c;->b(Les/uy$c;)Landroid/widget/Button;

    move-result-object v0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    .line 10
    invoke-static {v2}, Les/uy$c;->b(Les/uy$c;)Landroid/widget/Button;

    move-result-object p1

    iget-object v0, p0, Les/uy;->j:Landroid/view/View$OnClickListener;

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 11
    invoke-static {v2}, Les/uy$c;->b(Les/uy$c;)Landroid/widget/Button;

    move-result-object p1

    iget-object v0, p0, Les/uy;->k:Landroid/view/View$OnLongClickListener;

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    return-object v2
.end method

.method public abstract a(ILes/v00;)V
.end method

.method public a(Ljava/util/List;)V
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/v00;",
            ">;)V"
        }
    .end annotation

    .line 12
    iput-object p1, p0, Les/uy;->g:Ljava/util/List;

    .line 13
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v1, v0, 0x1

    .line 14
    div-int/lit8 v1, v1, 0x2

    .line 15
    iget v2, p0, Les/uy;->c:I

    if-eq v1, v2, :cond_0

    .line 16
    invoke-direct {p0, v1}, Les/uy;->c(I)V

    :cond_0
    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    const/4 v3, 0x1

    if-ge v2, v0, :cond_2

    .line 17
    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/v00;

    .line 18
    iget-object v5, p0, Les/uy;->h:Landroid/util/SparseArray;

    invoke-virtual {v5, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/uy$c;

    .line 19
    div-int/lit8 v6, v2, 0x2

    add-int/2addr v6, v3

    iget v7, p0, Les/uy;->c:I

    if-ne v6, v7, :cond_1

    goto :goto_1

    :cond_1
    const/4 v3, 0x0

    .line 20
    :goto_1
    invoke-direct {p0, v4, v5, v3}, Les/uy;->a(Les/v00;Les/uy$c;Z)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 21
    :cond_2
    rem-int/lit8 v2, v0, 0x2

    if-ne v2, v3, :cond_3

    .line 22
    iget-object v2, p0, Les/uy;->h:Landroid/util/SparseArray;

    invoke-virtual {v2, v0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/uy$c;

    if-eqz v0, :cond_3

    .line 23
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/v00;

    invoke-direct {p0, p1, v0, v1}, Les/uy;->a(Les/v00;Les/uy$c;Z)V

    .line 24
    invoke-static {v0}, Les/uy$c;->a(Les/uy$c;)Landroid/view/View;

    move-result-object p1

    const/4 v0, 0x4

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    :cond_3
    return-void
.end method

.method public b(I)Les/v00;
    .locals 1

    .line 6
    :try_start_0
    iget-object v0, p0, Les/uy;->g:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/v00;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    const/4 p1, 0x0

    return-object p1
.end method
